package org.foreveross.que.application;

import java.util.List;

import org.foreveross.que.entity.TopicEntity;
import org.foreveross.que.vo.IndexVo;
/**
 * 讨论话题操作接口
 * @author lyq
 *
 */
public interface TopicApplication  {
	
	/**
	 * 分页查询
	 * @param vo
	 * @param availMenus 
	 * @return
	 * @throws Exception
	 */
	public void loadTopics(IndexVo vo, List<String> availMenus) throws Exception;
	/**
	 * 加载一个TopicVo
	 * @param vo
	 * @throws Exception
	 */
	public void loadTopic(IndexVo vo) throws Exception;
	
	/**
	 * 
	 * @param id
	 * @param type 1:置顶；0：取消置顶
	 * @throws Exception
	 */
	public void updateIsStickie(String id,Integer type) throws Exception;
	/**
	 * 发起一个话题
	 * @param vo
	 * @return 
	 * @throws Exception
	 */
	public TopicEntity launchTopic(IndexVo vo) throws Exception;

}
